from flask import Flask
from flask_script import Manager
from flask_migrate import MigrateCommand, Migrate
from info import app, db, create_app


app = create_app('development')
manage = Manager(app)
Migrate(app, db)
manage.add_command('db', MigrateCommand)


@app.route('/')
def index():
    return '<h1>index</h1>'


if __name__ == '__main__':
    # app.config.from_pyfile('config.ini')
    manage.run()
